package cn.edu.scau.cmi.ema.domain;


import javax.persistence.*;
import javax.xml.bind.annotation.*;
import java.io.Serializable;

@Entity
@NamedQueries({ @NamedQuery(name = "findAllEvent9zwzs", query = "select myEvent9zwz from Event9zwz myEvent9zwz"),
		@NamedQuery(name = "findEvent9zwzByNumber", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.number = ?1"),
		@NamedQuery(name = "findEvent9zwzByNumberContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.number like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzByName", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.name = ?1"),
		@NamedQuery(name = "findEvent9zwzByNameContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.name like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzByFood", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.food = ?1"),
		@NamedQuery(name = "findEvent9zwzByFoodContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.food like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzByDiscoveryear", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.discoveryear = ?1"),
		@NamedQuery(name = "findEvent9zwzByDiscoveryearContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.discoveryear like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzByDiscoverymonth", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.discoverymonth = ?1"),
		@NamedQuery(name = "findEvent9zwzByDiscoverymonthContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.discoverymonth like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzByDiscoverydetailtime", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.discoverydetailtime = ?1"),
		@NamedQuery(name = "findEvent9zwzByDiscoverydetailtimeContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.discoverydetailtime like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzByDiscoveryprovince", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.discoveryprovince = ?1"),
		@NamedQuery(name = "findEvent9zwzByDiscoveryprovinceContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.discoveryprovince like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzByDiscoverydistrict", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.discoverydistrict = ?1"),
		@NamedQuery(name = "findEvent9zwzByDiscoverydistrictContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.discoverydistrict like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzByDiscoverycounty", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.discoverycounty = ?1"),
		@NamedQuery(name = "findEvent9zwzByDiscoverycountyContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.discoverycounty like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzBySourceprovince", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.sourceprovince = ?1"),
		@NamedQuery(name = "findEvent9zwzBySourceprovinceContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.sourceprovince like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzBySourcedistrict", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.sourcedistrict = ?1"),
		@NamedQuery(name = "findEvent9zwzBySourcedistrictContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.sourcedistrict like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzBySourcecounty", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.sourcecounty = ?1"),
		@NamedQuery(name = "findEvent9zwzBySourcecountyContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.sourcecounty like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzBySource", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.source = ?1"),
		@NamedQuery(name = "findEvent9zwzBySourceContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.source like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzBySubjectmaintype", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.subjectmaintype = ?1"),
		@NamedQuery(name = "findEvent9zwzBySubjectmaintypeContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.subjectmaintype like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzBySubject", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.subject = ?1"),
		@NamedQuery(name = "findEvent9zwzBySubjectContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.subject like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzByProducer", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.producer = ?1"),
		@NamedQuery(name = "findEvent9zwzByProducerContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.producer like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzByLaw", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.law = ?1"),
		@NamedQuery(name = "findEvent9zwzByLawContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.law like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzByFoodmaintype", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.foodmaintype = ?1"),
		@NamedQuery(name = "findEvent9zwzByFoodmaintypeContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.foodmaintype like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzByFoodsubtype", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.foodsubtype = ?1"),
		@NamedQuery(name = "findEvent9zwzByFoodsubtypeContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.foodsubtype like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzByAdultertype", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.adultertype = ?1"),
		@NamedQuery(name = "findEvent9zwzByAdultertypeContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.adultertype like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzByFoodbatchfiller", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.foodbatchfiller = ?1"),
		@NamedQuery(name = "findEvent9zwzByFoodbatchfillerContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.foodbatchfiller like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzByAdulterlink", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.adulterlink = ?1"),
		@NamedQuery(name = "findEvent9zwzByAdulterlinkContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.adulterlink like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzByDiscoverylink", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.discoverylink = ?1"),
		@NamedQuery(name = "findEvent9zwzByDiscoverylinkContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.discoverylink like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzByDetectmethod", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.detectmethod = ?1"),
		@NamedQuery(name = "findEvent9zwzByDetectmethodContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.detectmethod like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzByDescription", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.description = ?1"),
		@NamedQuery(name = "findEvent9zwzByDescriptionContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.description like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzByEffect", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.effect = ?1"),
		@NamedQuery(name = "findEvent9zwzByEffectContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.effect like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzByUrl", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.url = ?1"),
		@NamedQuery(name = "findEvent9zwzByUrlContaining", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.url like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwzByImported", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.imported = ?1"),
		@NamedQuery(name = "findEvent9zwzByIslock", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.islock = ?1"),
		@NamedQuery(name = "findEvent9zwzById", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.id = ?1"),
		@NamedQuery(name = "findEvent9zwzByPrimaryKey", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.id = ?1 "),
		@NamedQuery(name = "deleteEvent9zwzsByIds", query = "delete Event9zwz where id in (?1)"),
		@NamedQuery(name = "findEvent9zwzsByIds", query = "select myEvent9zwz from Event9zwz myEvent9zwz where myEvent9zwz.id in (?1)"),
		@NamedQuery(name = "findEvent9zwzByPhyscialPrimaryKey", query = "select myEvent9zwz from Event9zwz myEvent9zwz where  myEvent9zwz.number = ?1"),
		@NamedQuery(name = "countEvent9zwzsByName", query = "select count(myEvent9zwz)  from Event9zwz myEvent9zwz where myEvent9zwz.name like concat('%',?1,'%')") })
@Table(catalog = "ema", name = "event9zwz")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(namespace = "ema/cn/edu/scau/cmi/ema/domain", name = "Event9zwz")
@XmlRootElement(namespace = "ema/cn/edu/scau/cmi/ema/domain")

public class Event9zwz implements Serializable, Comparable<Event9zwz> {

	private static final long serialVersionUID = 1L;

	@Column(name = "id", nullable = false)
	@Basic(fetch = FetchType.EAGER)
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@XmlElement
	Integer id;

	@Column(name = "number")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String number;

	@Column(name = "name")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String name;

	@Column(name = "food")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String food;

	@Column(name = "discoveryear")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String discoveryear;

	@Column(name = "discoverymonth")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String discoverymonth;

	@Column(name = "discoverydetailtime")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String discoverydetailtime;

	@Column(name = "discoveryprovince")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String discoveryprovince;

	@Column(name = "discoverydistrict")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String discoverydistrict;

	@Column(name = "discoverycounty")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String discoverycounty;

	@Column(name = "sourceprovince")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String sourceprovince;

	@Column(name = "sourcedistrict")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String sourcedistrict;

	@Column(name = "sourcecounty")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String sourcecounty;

	@Column(name = "source")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String source;

	@Column(name = "subjectmaintype")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String subjectmaintype;

	@Column(name = "subject")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String subject;

	@Column(name = "producer")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String producer;

	@Column(name = "law")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String law;

	@Column(name = "foodmaintype")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String foodmaintype;

	@Column(name = "foodsubtype")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String foodsubtype;

	@Column(name = "adultertype")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String adultertype;

	@Column(name = "foodbatchfiller")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String foodbatchfiller;

	@Column(name = "adulterlink")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String adulterlink;

	@Column(name = "discoverylink")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String discoverylink;

	@Column(name = "detectmethod")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String detectmethod;

	@Column(name = "description")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String description;

	@Column(name = "effect")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String effect;

	@Column(name = "url")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String url;

	@Column(name = "imported")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	Boolean imported;

	@Column(name = "islock")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	Boolean islock;

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return this.id;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getNumber() {
		return this.number;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return this.name;
	}

	public void setFood(String food) {
		this.food = food;
	}

	public String getFood() {
		return this.food;
	}

	public void setDiscoveryear(String discoveryear) {
		this.discoveryear = discoveryear;
	}

	public String getDiscoveryear() {
		return this.discoveryear;
	}

	public void setDiscoverymonth(String discoverymonth) {
		this.discoverymonth = discoverymonth;
	}

	public String getDiscoverymonth() {
		return this.discoverymonth;
	}

	public void setDiscoverydetailtime(String discoverydetailtime) {
		this.discoverydetailtime = discoverydetailtime;
	}

	public String getDiscoverydetailtime() {
		return this.discoverydetailtime;
	}

	public void setDiscoveryprovince(String discoveryprovince) {
		this.discoveryprovince = discoveryprovince;
	}

	public String getDiscoveryprovince() {
		return this.discoveryprovince;
	}

	public void setDiscoverydistrict(String discoverydistrict) {
		this.discoverydistrict = discoverydistrict;
	}

	public String getDiscoverydistrict() {
		return this.discoverydistrict;
	}

	public void setDiscoverycounty(String discoverycounty) {
		this.discoverycounty = discoverycounty;
	}

	public String getDiscoverycounty() {
		return this.discoverycounty;
	}

	public void setSourceprovince(String sourceprovince) {
		this.sourceprovince = sourceprovince;
	}

	public String getSourceprovince() {
		return this.sourceprovince;
	}

	public void setSourcedistrict(String sourcedistrict) {
		this.sourcedistrict = sourcedistrict;
	}

	public String getSourcedistrict() {
		return this.sourcedistrict;
	}

	public void setSourcecounty(String sourcecounty) {
		this.sourcecounty = sourcecounty;
	}

	public String getSourcecounty() {
		return this.sourcecounty;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getSource() {
		return this.source;
	}

	public void setSubjectmaintype(String subjectmaintype) {
		this.subjectmaintype = subjectmaintype;
	}

	public String getSubjectmaintype() {
		return this.subjectmaintype;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getSubject() {
		return this.subject;
	}

	public void setProducer(String producer) {
		this.producer = producer;
	}

	public String getProducer() {
		return this.producer;
	}

	public void setLaw(String law) {
		this.law = law;
	}

	public String getLaw() {
		return this.law;
	}

	public void setFoodmaintype(String foodmaintype) {
		this.foodmaintype = foodmaintype;
	}

	public String getFoodmaintype() {
		return this.foodmaintype;
	}

	public void setFoodsubtype(String foodsubtype) {
		this.foodsubtype = foodsubtype;
	}

	public String getFoodsubtype() {
		return this.foodsubtype;
	}

	public void setAdultertype(String adultertype) {
		this.adultertype = adultertype;
	}

	public String getAdultertype() {
		return this.adultertype;
	}

	public void setFoodbatchfiller(String foodbatchfiller) {
		this.foodbatchfiller = foodbatchfiller;
	}

	public String getFoodbatchfiller() {
		return this.foodbatchfiller;
	}

	public void setAdulterlink(String adulterlink) {
		this.adulterlink = adulterlink;
	}

	public String getAdulterlink() {
		return this.adulterlink;
	}

	public void setDiscoverylink(String discoverylink) {
		this.discoverylink = discoverylink;
	}

	public String getDiscoverylink() {
		return this.discoverylink;
	}

	public void setDetectmethod(String detectmethod) {
		this.detectmethod = detectmethod;
	}

	public String getDetectmethod() {
		return this.detectmethod;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDescription() {
		return this.description;
	}

	public void setEffect(String effect) {
		this.effect = effect;
	}

	public String getEffect() {
		return this.effect;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getUrl() {
		return this.url;
	}

	public void setImported(Boolean imported) {
		this.imported = imported;
	}

	public Boolean getImported() {
		return this.imported;
	}

	public void setIslock(Boolean islock) {
		this.islock = islock;
	}

	public Boolean getIslock() {
		return this.islock;
	}

	public void copy(Event9zwz that) {

		setId(that.getId());

		setNumber(that.getNumber());
		setName(that.getName());
		setFood(that.getFood());
		setDiscoveryear(that.getDiscoveryear());
		setDiscoverymonth(that.getDiscoverymonth());
		setDiscoverydetailtime(that.getDiscoverydetailtime());
		setDiscoveryprovince(that.getDiscoveryprovince());
		setDiscoverydistrict(that.getDiscoverydistrict());
		setDiscoverycounty(that.getDiscoverycounty());
		setSourceprovince(that.getSourceprovince());
		setSourcedistrict(that.getSourcedistrict());
		setSourcecounty(that.getSourcecounty());
		setSource(that.getSource());
		setSubjectmaintype(that.getSubjectmaintype());
		setSubject(that.getSubject());
		setProducer(that.getProducer());
		setLaw(that.getLaw());
		setFoodmaintype(that.getFoodmaintype());
		setFoodsubtype(that.getFoodsubtype());
		setAdultertype(that.getAdultertype());
		setFoodbatchfiller(that.getFoodbatchfiller());
		setAdulterlink(that.getAdulterlink());
		setDiscoverylink(that.getDiscoverylink());
		setDetectmethod(that.getDetectmethod());
		setDescription(that.getDescription());
		setEffect(that.getEffect());
		setUrl(that.getUrl());
		setImported(that.getImported());
		setIslock(that.getIslock());

	}

	public Event9zwz() {

	}

	@Override
	public String toString() {

		StringBuilder buffer = new StringBuilder();

		buffer.append("id=[").append(id).append("] ");

		buffer.append("number=[").append(number).append("] ");
		buffer.append("name=[").append(name).append("] ");
		buffer.append("food=[").append(food).append("] ");
		buffer.append("discoveryear=[").append(discoveryear).append("] ");
		buffer.append("discoverymonth=[").append(discoverymonth).append("] ");
		buffer.append("discoverydetailtime=[").append(discoverydetailtime).append("] ");
		buffer.append("discoveryprovince=[").append(discoveryprovince).append("] ");
		buffer.append("discoverydistrict=[").append(discoverydistrict).append("] ");
		buffer.append("discoverycounty=[").append(discoverycounty).append("] ");
		buffer.append("sourceprovince=[").append(sourceprovince).append("] ");
		buffer.append("sourcedistrict=[").append(sourcedistrict).append("] ");
		buffer.append("sourcecounty=[").append(sourcecounty).append("] ");
		buffer.append("source=[").append(source).append("] ");
		buffer.append("subjectmaintype=[").append(subjectmaintype).append("] ");
		buffer.append("subject=[").append(subject).append("] ");
		buffer.append("producer=[").append(producer).append("] ");
		buffer.append("law=[").append(law).append("] ");
		buffer.append("foodmaintype=[").append(foodmaintype).append("] ");
		buffer.append("foodsubtype=[").append(foodsubtype).append("] ");
		buffer.append("adultertype=[").append(adultertype).append("] ");
		buffer.append("foodbatchfiller=[").append(foodbatchfiller).append("] ");
		buffer.append("adulterlink=[").append(adulterlink).append("] ");
		buffer.append("discoverylink=[").append(discoverylink).append("] ");
		buffer.append("detectmethod=[").append(detectmethod).append("] ");
		buffer.append("description=[").append(description).append("] ");
		buffer.append("effect=[").append(effect).append("] ");
		buffer.append("url=[").append(url).append("] ");
		buffer.append("imported=[").append(imported).append("] ");
		buffer.append("islock=[").append(islock).append("] ");

		return buffer.toString();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = (int) (prime * result + ((id == null) ? 0 : id.hashCode()));
		return result;
	}

	public boolean equals(Object obj) {
		if (obj == this)
			return true;
		if (!(obj instanceof Event9zwz))
			return false;
		Event9zwz comparedEvent9zwz = (Event9zwz) obj;
		if (!CheckPropertyEqual(this.number, comparedEvent9zwz.number)) {
			return false;
		}
		return true;
	}

	public static <T> boolean CheckPropertyEqual(T originProperty, T comparedProperty) {
		// 基本类型经过参数传递后会自动装箱
		String[] className = originProperty.getClass().getName().split("\\.");
		if (className[0].equals("java") && className[1].equals("math")) {
			return ((Comparable) originProperty).compareTo(comparedProperty) == 0 ? true : false;
		} else {
			return originProperty.equals(comparedProperty);
		}
	}

	@Override
	public int compareTo(Event9zwz o) {
		if (this.getId() > o.getId()) {
			return 1;
		} else if (this.getId() == o.getId()) {
			return 0;
		} else {
			return -1;
		}

	}
}
